# Contributor: Bart Ribbers <bribbers@disroot.org>
# Maintainer: Bart Ribbers <bribbers@disroot.org>
pkgname=calindori
pkgver=1.1
pkgrel=2
pkgdesc="Calendar for Plasma Mobile"
arch="all !armhf" # armhf blocked by qt5-qtdeclarative
url="https://invent.kde.org/kde/calindori"
license="GPL-2.0-or-later"
depends="qt5-qtquickcontrols2 kirigami2"
makedepends="extra-cmake-modules qt5-qtbase-dev qt5-qtdeclarative-dev qt5-qtsvg-dev qt5-qtquickcontrols2-dev kconfig-dev kirigami2-dev plasma-framework-dev ki18n-dev kcalendarcore-dev"
source="$pkgname-$pkgver.tar.gz::https://invent.kde.org/kde/calindori/-/archive/v$pkgver/calindori-v$pkgver.tar.gz"
options="!check" # No tests
builddir="$srcdir/$pkgname-v$pkgver"

build() {
	cmake -B "$builddir"/build \
		-DCMAKE_BUILD_TYPE=None \
		-DCMAKE_INSTALL_PREFIX=/usr
	make -C build
}

package() {
	DESTDIR="$pkgdir" make -C build install
}

sha512sums="9fba4b2c44cd24558b61b31f984317b798ae094b0090cecf0285771cdc1d98192e63edbd501a39abfd73e9d9635ec9eee25b9ced31f76f23bf50cda5b96807e5  calindori-1.1.tar.gz"
